package com.leen.aspect.annon;

import com.leen.aspect.permiss.Logical;

import java.lang.annotation.*;

/**
 * 权限注解
 * @author wy
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequiredPermission {

    /**
     * 菜单权限
     * @return
     */
    String[] permissionValue() default  {};

    /**
     * 角色权限
     * @return
     */
    String roleValue() default "";

    /**
     * 条件运算符
     * @return
     */
    Logical logical() default Logical.OR;
}
